//
//  AppTabBarState.swift
//  swiftUIdemo
//
//  Created by Z.cy on 2025/1/8.
//

import Foundation

class AppTabBarState: ObservableObject {
    @Published var selectedTab:TabItem
    @Published var isTabBarHidden:Bool
    @Published var isPremium:Bool

    init(selectedTab: TabItem = .home, isTabBarHidden: Bool = false, isPremium: Bool = false) {
        self.selectedTab = selectedTab
        self.isTabBarHidden = isTabBarHidden
        self.isPremium = isPremium
    }
    
}

enum TabItem :String{
    case home = "rectangle.fill.on.rectangle.fill"
    case live = "play.tv.fill"
    case message = "message.fill"
    case profile = "person.fill"
}
